using System;
using System.Collections.Generic;
using System.Text;
using Gencode.PrsCommon.App;

namespace Personalplaner
{
    class PDienstColumn : IPersonColumn
    {
        GPerson.WEEKEND weekend = GPerson.WEEKEND.None;
        string name = "";
        string date = "";
        int dienstID;
        string colorName = "";
        int rgb;
        string caption = "";

        public string Caption
        {
            get
            {
                if (date == string.Empty)
                {
                    return caption;
                }
                else
                {
                    return DateUtil.GetDay(date);
                }
            }
            //get { return caption; }
            set { caption = value; }
        }
        internal GPerson.WEEKEND Weekend
        {
            get { return weekend; }
            set { weekend = value; }
        }
        public int RGB
        {
            get { return rgb; }
            set { rgb = value; }
        }
        public string ColorName
        {
            get { return colorName; }
            set { colorName = value; }
        }
        public int DienstID
        {
            get { return dienstID; }
            set { dienstID = value; }
        }
        public string Date
        {
            get { return date; }
            set { date = value; }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        public string Wert
        {
            get { return name; }
            set { name = value; }
        }
    }
}
